package com.supermarket.exception;

/**
 * 文章相关异常类
 */
public class ArticleException extends RuntimeException {

    private Integer code;

    public ArticleException(String message) {
        super(message);
        this.code = 400;
    }

    public ArticleException(String message, Integer code) {
        super(message);
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
} 